<%@ page language="java" contentType= "text/html" pageEncoding="UTF-8"%>
<%@ page import="java.sql.ResultSet" %>
<%@include file="/include/common/formuihead1.jsp"%>
<%
	page1.setFastMode(true);
%>
<%@include file="/include/common/formuihead2.jsp"%>
<%
	page1.getPageTitle().setTitle("测试页面3");
	ResultSet rs = null;
%>
<jm:form >
<table border="1" cellpadding="0" cellspacing="0">
	
	<%
		Map map2 = (Map)ret.GetParamValue("lev2");
		Map map3 = (Map)ret.GetParamValue("lev3");
		Map map4 = (Map)ret.GetParamValue("lev4");
		Map map5 = (Map)ret.GetParamValue("lev5");
		rs = (ResultSet)ret.getSerchResult();
		while(rs.next()){
			//lev1
			String item_no1 = utils.getRsString(rs,"item_no");
			%><tr style="background-color: <%=map2.containsKey(item_no1) ? "yellow;" : ""%>" ><td><%=utils.getRsString(rs,"lev1")%></td><td><%=utils.getRsString(rs,"url")%></td></tr><%
			//lev2
			if(map2.containsKey(item_no1)){
				List list2 = (List)map2.get(item_no1);
				for(int i=0;i<list2.size();i++){
					String[] ay2 = (String[])list2.get(i);
					String des2 = ay2[0];
					String item_no2 = ay2[1];
					%><tr style="background-color: <%=map3.containsKey(item_no2) ? "yellow;" : ""%>" ><td><%=des2%></td><td><%=ay2[2]%></td></tr><%
					
					//lev3
					if(map3.containsKey(item_no2)){
						List list3 = (List)map3.get(item_no2);
						for(int j=0;j<list3.size();j++){
							String[] ay3 = (String[])list3.get(j);
							String des3 = ay3[0];
							String item_no3 = ay3[1];
							%><tr style="background-color: <%=map4.containsKey(item_no3) ? "yellow;" : ""%>" ><td><%=des3%></td><td><%=ay3[2]%></td></tr><%
							
							//lev4
							if(map4.containsKey(item_no3)){
								List list4 = (List)map4.get(item_no3);
								for(int k=0;k<list4.size();k++){
									String[] ay4 = (String[])list4.get(k);
									String des4 = ay4[0];
									String item_no4 = ay4[1];
									%><tr style="background-color: <%=map5.containsKey(item_no4) ? "yellow;" : ""%>" ><td><%=des4%></td><td><%=ay4[2]%></td></tr><%
									
									//lev5
									if(map5.containsKey(item_no4)){
										List list5 = (List)map5.get(item_no4);
										for(int m=0;m<list5.size();m++){
											String[] ay5 = (String[])list5.get(m);
											String des5 = ay5[0];
											String item_no5 = ay5[1];
											%><tr><td><%=des5%></td><td><%=ay5[2]%></td></tr><%
										}
									}
								}
							}
						}
					}
				}
			}
			
			
		}
	%>
	
</table>
</jm:form>
<jm:script><script type="text/javascript" charset="UTF-8">
	$(function(){
		//以下定义文档加载完之后执行的js
		Ext.require([
		    'Ext.form.field.File'
		]);
		
		
	});
</script></jm:script>
<%@include file="/include/common/formuiend.jsp"%>